/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package thienphuc.patient.bo;

import java.util.List;
import thienphuc.patient.dto.ThongTinBenhNhan;

/**
 *
 * @author QuocDat
 */
public interface ThongTinBenhNhanBO {

    /**
     * Get all ThongTinBenhNhan
     * @return
     * @throws Exception 
     */
    List<ThongTinBenhNhan> getAll() throws Exception;
    
    /**
     * Get ThongTinBenhNhan by MaBenhNhan
     * @param maBenhNhan
     * @return 
     */
    ThongTinBenhNhan getById(int maBenhNhan);
    
    /**
     * Get ThongTinBenhNhan by TenBenhNhan
     * @param tenBenhNhan
     * @return
     * @throws Exception 
     */
    List<ThongTinBenhNhan> getByTenBenhNhan(String tenBenhNhan) throws Exception;
    
    /**
     * Get ThongTinBenhNhan by Phai
     * @param phai
     * @return
     * @throws Exception 
     */
    List<ThongTinBenhNhan> getByPhai(boolean phai) throws Exception;
    
    /**
     * Get ThongTinBenhNhan by NamSinh
     * @param namSinh
     * @return
     * @throws Exception 
     */
    List<ThongTinBenhNhan> getByNamSinh(int namSinh) throws Exception;
    
    /**
     * Insert ThongTinBenhNhan
     * @param thongTinBenhNhan
     * @return
     * @throws Exception 
     */
    boolean insertThongTinBenhNhan(ThongTinBenhNhan thongTinBenhNhan) throws Exception;
    
    /**
     * Update ThongTinBenhNhan
     * @param thongTinBenhNhan
     * @return
     * @throws Exception 
     */
    boolean updateThongTinBenhNhan(ThongTinBenhNhan thongTinBenhNhan) throws Exception;
    
}
